package cn.taokuaidi.wangwang.client.dataProxy;

import java.util.List;

import cn.taokuaidi.wangwang.client.model.OrderDO;

import com.extjs.gxt.ui.client.data.DataReader;
import com.extjs.gxt.ui.client.data.HttpProxy;
import com.google.gwt.http.client.RequestBuilder;
import com.google.gwt.user.client.rpc.AsyncCallback;

public class AgentDataProxy extends HttpProxy<OrderDO, List<OrderDO>> {

    public AgentDataProxy(RequestBuilder builder) {
        super(builder);
    }

    public void setBuilder(RequestBuilder builder) {
        this.builder = builder;
        this.initUrl = builder.getUrl();
    }

    @Override
    public void load(DataReader<OrderDO, List<OrderDO>> reader, OrderDO loadConfig,
                     AsyncCallback<List<OrderDO>> callback) {
        super.load(reader, loadConfig, callback);
    }

}
